<tr> 
<td>
<%
set rs = abredb.execute("SELECT TOP 5 idprod, nome, preco FROM produtos where estoque='s' ORDER BY contador DESC")
				
if not rs.eof or rs.bof then 
%>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr> 
<td height="36"><div align="center"><font color="#999999"><strong><img src="<%=dirlingua%>/imagens/comprados.gif" width="145" height="36"></strong></font></div></td>
</tr>
</table>
<table cellspacing=0 cellpadding=5 width="100%" border=0>
<tbody>				
<% 
for x = 0 to 5 
%>
<% if (not rs.eof) and (not rs.bof) then  %>
<tr bgcolor="#FFFFFF"> 
<td width="1" align=right valign=center nowrap="nowrap"><img src="<%=dirlingua%>/imagens/seta.gif" width="6" height="5" border=0></td>
<td width="117" class="inp"><a href="produtos.asp?produto=<%=rs("idprod")%>"  onMouseOut="window.status='';return true;" onMouseOver="window.status='+ Detalhes';return true;" style="text-decoration: none;"><%=rs("nome")%></a>
<br><b><%= strlgMoeda & " " & formatnumber(rs("preco"),2)%></b></td>
</tr>
<% 
rs.movenext
end if
%>
<%next%>
</tbody>
</table>
<%end if%>
</td>
</tr>